.class public Lcom/a0soft/gphone/app2sd/main/AboutWnd;
.super Landroid/app/Activity;
.source "AboutWnd.java"


# instance fields
.field private a:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 15
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 79
    return-void
.end method

.method private a()V
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->a:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 54
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->a:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->goBack()V

    .line 57
    :goto_0
    return-void

    .line 56
    :cond_0
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->finish()V

    goto :goto_0
.end method

.method private a(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 62
    const/high16 v0, 0x7f0a

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->a:Landroid/webkit/WebView;

    .line 64
    if-nez p1, :cond_0

    move v0, v1

    .line 69
    :goto_0
    const-string v1, "file:///android_asset/"

    .line 71
    const/4 v2, 0x1

    if-ne v0, v2, :cond_1

    .line 72
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "whats_new.htm"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 76
    :goto_1
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->a:Landroid/webkit/WebView;

    invoke-virtual {v1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 77
    return-void

    .line 64
    :cond_0
    const-string v0, "sp"

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    goto :goto_0

    .line 74
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "about.htm"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_1
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/main/AboutWnd;)V
    .locals 0
    .parameter

    .prologue
    .line 15
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->a()V

    return-void
.end method


# virtual methods
.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 2
    .parameter

    .prologue
    .line 42
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    .line 44
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->a()V

    .line 45
    const/4 v0, 0x1

    .line 47
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Landroid/app/Activity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 25
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 26
    const/high16 v0, 0x7f03

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->setContentView(I)V

    .line 28
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->a(Landroid/os/Bundle;)V

    .line 30
    const v0, 0x7f0a0001

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/AboutWnd;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/a0soft/gphone/app2sd/main/a;

    invoke-direct {v1, p0}, Lcom/a0soft/gphone/app2sd/main/a;-><init>(Lcom/a0soft/gphone/app2sd/main/AboutWnd;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 37
    return-void
.end method
